Skip to content

Fix: Import Embed trait for rust-embed ConsoleAssets#26

Merged
been-there-done-that merged 2 commits into
spec/operator-consolefrom
cascade/cargo-check-fix-all-these-and-verify-2ae883
May 1, 2026
Merged

Fix: Import Embed trait for rust-embed ConsoleAssets#26
been-there-done-that merged 2 commits into
spec/operator-consolefrom
cascade/cargo-check-fix-all-these-and-verify-2ae883

Conversation

@been-there-done-that
Copy link
Copy Markdown
Collaborator

Summary

Fixes compilation error where the "get" method was not found for ConsoleAssets.

Changes

  • Import the "Embed" trait from rust_embed in addition to the "RustEmbed" derive macro

Error Fixed

error[E0599]: no function or associated item named "get" found for struct "ConsoleAssets"

The rust-embed crate requires both the derive macro (RustEmbed) and the trait (Embed) to be imported for the generated code to work properly.

__deesh__ added 2 commits May 2, 2026 02:50
- Import Embed trait for rust-embed ConsoleAssets (fixes missing 'get' method)
- Remove unused imports (Embed, PyStringMethods)
- Prefix unused variables with underscore (concurrency_max, headers)
- Auto-fixes from cargo fix for unused imports and variables
@been-there-done-that been-there-done-that force-pushed the cascade/cargo-check-fix-all-these-and-verify-2ae883 branch from 9485755 to 66e23cb Compare May 1, 2026 21:35
@been-there-done-that been-there-done-that merged commit 433700d into spec/operator-console May 1, 2026
2 of 5 checks passed
@been-there-done-that been-there-done-that deleted the cascade/cargo-check-fix-all-these-and-verify-2ae883 branch May 3, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant